/**
 * @param {number[]} arr
 */
var MajorityChecker = function(arr) {

};

/**
 * @param {number} left
 * @param {number} right
 * @param {number} threshold
 * @return {number}
 */
MajorityChecker.prototype.query = function(left, right, threshold) {
    return 1;
};


let testcase = new MajorityChecker([1,1,2,2,1,1]);
console.assert(1 === testcase.query(0, 5, 4))